package com.itheima.dubbo.api;

import com.itheima.domain.mongo.Comment;
import com.itheima.domain.vo.PageResult;

/**
 * @author 阿鹏
 * @date 2021/1/29 16:45
 */

public interface CommentApi {

    long save(Comment comment);

    long saveOtherComment(Comment comment);

    long remove(Comment comment);

    long removeOtherComment(Comment comment);

    PageResult<Comment> findComments(int page, int pagesize, String publishId);

    PageResult<Comment> findCommentByUser(int page, int pagesize, int commentType, Long userId);

    Comment findCommentByCommentId(String commentId);
}
